from __future__ import unicode_literals

from django.db import models

# Create your models here.


class MetaInfo(models.Model):
    desp=models.CharField('desp',max_length=200,blank=True)
    
    class Meta:
        app_label='pts'    

class AppBase(models.Model):
    appcode=models.CharField('appcode',max_length=200,blank=True)
    flow=models.CharField('flow',max_length=200,blank=True)
    
    class Meta:
        app_label='pts'

class AppEXCD(AppBase):
    name=models.CharField('name',max_length=200,blank=True)

    class Meta:
        app_label='pts'
        
class VerBase(models.Model):
    app=models.ForeignKey(AppBase,blank=True,null=True)
    vercode=models.CharField('vercode',max_length=200,blank=True)
    metainfo=models.ForeignKey(MetaInfo,blank=True,null=True)
    
    class Meta:
        app_label='pts'

class VerCD(VerBase):
    dev_code=models.CharField('dev_code',max_length=200,blank=True)
    rel_code=models.CharField('rel_code',max_length=200,blank=True)
    
    class Meta:
        app_label='pts'    



    
    